package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备表
 * </p>
 *
 * @author wy
 * @since 2024-07-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("device")
@ApiModel("设备表")
public class Device implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备名称")
    private String name;

    @ApiModelProperty(value = "设备类型")
    private String type;

    @ApiModelProperty(value = "设备使用数量")
    private Integer number;

    @ApiModelProperty(value = "负责人")
    private Integer responsiblePersonId;

    @TableField(exist = false)
    private  String responsiblePersonName;

    @ApiModelProperty(value = "负责团队")
    private Integer teamId;

    @TableField(exist = false)
    private String teamName;

    @ApiModelProperty(value = "是否删除；0：未删除；1：已删除")
    private Integer isDeleted;


}
